package com.beerandjesus.sportofkings.handicapper.dao;

/**
 * Date: Sep 8, 2012
* Time: 7:37:36 PM
*/
class BaseSireData {
    private String name;
    private int starts;
    private int wins;


    public BaseSireData(String name, int starts, int wins) {
        this.name = name;
        this.starts = starts;
        this.wins = wins;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getStarts() {
        return starts;
    }

    public void setStarts(int starts) {
        this.starts = starts;
    }

    public int getWins() {
        return wins;
    }

    public void setWins(int wins) {
        this.wins = wins;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BaseSireData that = (BaseSireData) o;

        return !(name != null ? !name.equals(that.name) : that.name != null);

    }

    public int hashCode() {
        return (name != null ? name.hashCode() : 0);
    }
}
